package com.springcloud.config_client.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zheny
 */
@RefreshScope
@RestController
public class ConfigController {
    @Value("${config.info}")
    private String configInfo;

    @RequestMapping("/configInfo")
    public String GetConfigInfo(){
        return configInfo;
    }

    @RequestMapping("/test")
    public String GetMap(){
        return "3344";
    }
}
